import ReactDOM from 'react-dom/client'
import { HashRouter, useRoutes } from 'react-router-dom'
import routes from './router'
// import './styles/index.less'

const RoutesElement = () => useRoutes(routes)

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  // on strict mode, react will render twice
  // <React.StrictMode>
    <HashRouter>
      <RoutesElement />
    </HashRouter>
  // </React.StrictMode>,
)
